<?php
namespace app\blog\controller;

use app\blog\controller\Front;

class Page extends Front
{
    protected function initialize()
    {
        parent::initialize(); 
    }
    
    public function _empty($name='')
    {
        if(is_file('./view/'.$this->site['theme'].'/blog/page/'.$name.'.tpl')){
            $this->site['active'] = 'blogpage'.$name;
            $this->assign($this->site);
            return $this->fetch($name);
        }
        abort(404, '页面异常');
    }
}